package com.yyq.error;

/**
 * @author yyq
 * @create 2021-08-02 17:22
 */
public class Try_catch {
    public static void main(String[] args) {
        try {
            int i=10/0;
        }
        catch (Exception e){
            e.printStackTrace();
        }
        finally {
            //finally无论如何最后都会被执行
            System.out.println("执行结束");
        }
    }
}
